package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author huang lu
 * @since 2019-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SmkSmsconfig extends Model<SmkSmsconfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "config_id", type = IdType.AUTO)
    private Long configId;

    private String configName;
    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 1=腾讯云，2=阿里云
     */
    private Integer platform;

    //语音通道，1=ai 2=tencent
    private Integer voiceChannel;

    private String appid;

    private String appkey;

    /**
     * 火警模板号SMS
     */
    private String tempsmsFire;

    /**
     * 故障模板号SMS
     */
    private String tempsmsBreakdown;

    /**
     * 离线模板号SMS
     */
    private String tempsmsOffline;

    /**
     * 拆卸模板号SMS
     */
    private String tempsmsUnload;

    /**
     * 清除报警模板号SMS
     */
    private String tempsmsClear;

    /**
     * 火警模板号voice
     */
    private String tempvoiceFire;

    /**
     * 故障模板号voice
     */
    private String tempvoiceBreakdown;

    /**
     * 离线模板号voice
     */
    private String tempvoiceOffline;

    /**
     * 拆卸模板号voice
     */
    private String tempvoiceUnload;

    /**
     * 清除报警模板号voice
     */
    private String tempvoiceClear;

    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;

    private String createBy;

    @TableField(exist = false)
    private String depName;

    @Override
    public String toString() {
        return "SmkSmsconfig{" +
        "configId=" + configId +
        ", deptId=" + deptId +
        ", platform=" + platform +
        ", appid=" + appid +
        ", appkey=" + appkey +
        ", tempsmsFire=" + tempsmsFire +
        ", tempsmsBreakdown=" + tempsmsBreakdown +
        ", tempsmsOffine=" + tempsmsOffline +
        ", tempsmsUnload=" + tempsmsUnload +
        ", tempsmsClear=" + tempsmsClear +
        ", tempvoiceFire=" + tempvoiceFire +
        ", tempvoiceBreakdown=" + tempvoiceBreakdown +
        ", tempvoiceOffine=" + tempvoiceOffline +
        ", tempvoiceUnload=" + tempvoiceUnload +
        ", tempvoiceClear=" + tempvoiceClear +
        ", remark=" + remark +
        ", createDate=" + createDate +
        ", createBy=" + createBy +
        "}";
    }
}
